﻿<%@ Page Title="" Culture="en-GB" Language="C#" MasterPageFile="~/MasterPages/AdminMaster.master" AutoEventWireup="true" CodeFile="Candidate_InProcessWorkflow.aspx.cs" Inherits="Candidate_InProcessWorkflow" %>



<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <ajaxToolkit:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
    </ajaxToolkit:ToolkitScriptManager>
    <div class="col-md-12">
        <div class="panel-body" style="width: 105%; padding: 0px;">
            <div class="well well-sm" style="font-size: large">Candidate In Process Workflow</div>
            <div class="row">
                <div class="col-lg-2 text-right">
                    <span class="control-label">Search By:</span>
                </div>
                <div class="col-lg-3">
                    <asp:DropDownList ID="ddlEmail" runat="server" AutoPostBack="true" CssClass="dropdown-header" Style="width: 100%;" OnSelectedIndexChanged="ddlEmail_SelectedIndexChanged">
                        <asp:ListItem Value="0" Text="-- Select --"></asp:ListItem>
                        <asp:ListItem Value="EMAIL" Text="Email ID"></asp:ListItem>
                        <asp:ListItem Value="REGISTRATION" Text="Registration No."></asp:ListItem>
                        <asp:ListItem Value="CANDIDATE" Text="Candidate Name"></asp:ListItem>
                    </asp:DropDownList>
                </div>
                <div class="col-lg-2 text-right">
                    <asp:Label ID="lblvalue" runat="server"></asp:Label>
                </div>
                <div class="col-lg-3">
                    <div runat="server" id="ddlvalue">

                        <asp:TextBox ID="txtvalue" runat="server" MaxLength="50"></asp:TextBox>
                    </div>
                </div>
            </div>
            &nbsp;
                <div class="row">
                    <div class="col-lg-2 text-right">
                        <span class="control-label">Country:</span>
                    </div>
                    <div class="col-lg-3">
                        <asp:DropDownList ID="ddlCountry" CssClass="dropdown-header" runat="server" Width="100%"></asp:DropDownList>
                    </div>
                    <%-- <div class="col-lg-2 text-right">
                            <span class="control-label">State:</span>
                    </div>
                    <div class="col-lg-3">
                            <asp:TextBox ID="txtState" runat="server" CssClass="dropdown-header" Width="100%"></asp:TextBox>
                    </div>--%>
                    <div class="col-lg-2 text-right">
                            <span class="control-label">Region:</span>
                    </div>
                    <div class="col-lg-3">
                            <asp:DropDownList ID="ddlRegion" CssClass="dropdown-header" runat="server" Width="100%"></asp:DropDownList>
                    </div>
                </div>
            &nbsp;
                    <div class="row">
                        <div class="col-lg-2 text-right">
                            <span class="control-label">From Date :</span>
                        </div>
                        <div class="col-lg-3">
                            <asp:TextBox ID="txtDateFrom" runat="server"></asp:TextBox>
                            <asp:ImageButton ID="imgDateFrom" ImageUrl="../Images/calendar.gif" ImageAlign="Bottom" runat="server" Style="display: none" />
                            <ajaxToolkit:CalendarExtender ID="cDateFrom" PopupButtonID="imgPopup" runat="server" TargetControlID="txtDateFrom"
                                Format="dd/MM/yyyy">
                            </ajaxToolkit:CalendarExtender>
                            <asp:RequiredFieldValidator ID="ValidityFromDate" Display="Dynamic" runat="server" ControlToValidate="txtDateFrom"
                                ErrorMessage="Select From Date" ForeColor="Red"></asp:RequiredFieldValidator>
                        </div>
                        <div class="col-lg-2 text-right">
                            <span class="control-label">Date Upto :</span>
                        </div>
                        <div class="col-lg-2">
                            <asp:TextBox ID="txtDateUpto" runat="server"></asp:TextBox>
                            <asp:ImageButton ID="imgDateUpto" ImageUrl="../Images/calendar.gif" ImageAlign="Bottom" runat="server" Style="display: none" />
                            <ajaxToolkit:CalendarExtender ID="cDateUpto" PopupButtonID="imgPopup" runat="server" TargetControlID="txtDateUpto"
                                Format="dd/MM/yyyy">
                            </ajaxToolkit:CalendarExtender>
                            <asp:RequiredFieldValidator ID="ValidityToDate" Display="Dynamic" runat="server" ControlToValidate="txtDateUpto"
                                ErrorMessage="Select To Date" ForeColor="Red"></asp:RequiredFieldValidator>
                        </div>
                    </div>
            &nbsp;
                    <div class="row" style="text-align: center">
                        <asp:Button ID="btnSearch" OnClick="BtnSearch_OnClick" runat="server"
                            Text="Search" CausesValidation="false"></asp:Button>
                        <asp:Button ID="btnClear" OnClick="BtnClear_OnClick" runat="server"
                            Text="Clear" CausesValidation="false"></asp:Button>
                    </div>
            <div class="row">
                <asp:Label runat="server" ID="lblErrorMessage"></asp:Label>
            </div>
        </div>
        &nbsp;
                    &nbsp;
                    &nbsp;
                    &nbsp;
                    <div class="row"></div>
        <div class="grd_table" style="overflow-x: scroll; overflow-y: hidden; width: 100%; height: 30%; margin: 0px;">
            <asp:GridView ID="gvActivity" runat="server" CssClass="table"
                PageSize="10" AllowPaging="true" Width="100%"
                AutoGenerateColumns="false" OnPageIndexChanging="gvActivity_PageIndexChanging" OnRowDataBound="gvActivity_RowDataBound" OnRowDeleting="gvActivity_RowDeleting" OnSelectedIndexChanged="gvActivity_SelectedIndexChanged">
                <Columns>
                    <asp:BoundField DataField="CandidateName" HeaderText="Candidate Name" Visible="true">
                        <ItemStyle HorizontalAlign="Left" />
                        <HeaderStyle HorizontalAlign="Left" />
                    </asp:BoundField>
                    <asp:BoundField DataField="RoleTitle" HeaderText="Accrediation Type">
                        <ItemStyle Width="0%" HorizontalAlign="Left" />
                        <HeaderStyle HorizontalAlign="Left" />
                    </asp:BoundField>
                    <asp:BoundField DataField="CountryName" HeaderText="Country Name">
                        <ItemStyle Width="0%" HorizontalAlign="Left" />
                        <HeaderStyle HorizontalAlign="Left" />
                    </asp:BoundField>
                    <asp:BoundField DataField="Email" HeaderText="Email ID" InsertVisible="true" Visible="true">
                        <ItemStyle Width="0%" HorizontalAlign="Left" />
                        <HeaderStyle HorizontalAlign="Left" />
                    </asp:BoundField>
                    <asp:BoundField DataField="RegistrationNo" HeaderText="Registration No">
                        <ItemStyle Width="45%" HorizontalAlign="Left" />
                        <HeaderStyle HorizontalAlign="Left" />
                    </asp:BoundField>
                    <asp:BoundField DataField="RegistrationDate" HeaderText="Registration Date">
                        <ItemStyle Width="20%" HorizontalAlign="Left" />
                        <HeaderStyle HorizontalAlign="Left" />
                    </asp:BoundField>
                    <asp:BoundField DataField="CurrentStatus" HeaderText="Current Status">
                        <ItemStyle Width="45%" HorizontalAlign="Left" />
                        <HeaderStyle HorizontalAlign="Left" />
                    </asp:BoundField>
                    <asp:BoundField DataField="RegionalDirectorApproved" HeaderText="Approval Status" Visible="true">
                        <ItemStyle HorizontalAlign="Left" />
                        <HeaderStyle HorizontalAlign="Left" />
                    </asp:BoundField>
                    <asp:BoundField DataField="AllocatedAssessor" HeaderText="Assessor Allocation" Visible="true">
                        <ItemStyle HorizontalAlign="Left" />
                        <HeaderStyle HorizontalAlign="Left" />
                    </asp:BoundField>
                    <%--<asp:BoundField DataField="CandidateApproveAssessor" HeaderText="Candidate Approve Assessor" Visible="true">
                        <ItemStyle HorizontalAlign="Left" />
                        <HeaderStyle HorizontalAlign="Left" />
                    </asp:BoundField>--%>
                    <asp:BoundField DataField="Paymentamount" HeaderText="Payment Amount">
                        <ItemStyle Width="12%" />
                        <HeaderStyle HorizontalAlign="Left" />
                    </asp:BoundField>
                    <asp:BoundField DataField="RegistrationsPaymentCompleted" HeaderText="Payment Status">
                        <ItemStyle Width="12%" />
                        <HeaderStyle HorizontalAlign="Left" />
                    </asp:BoundField>
                    <asp:BoundField DataField="AssignBrief" HeaderText="Brief Status" Visible="true">
                        <ItemStyle HorizontalAlign="Left" />
                        <HeaderStyle HorizontalAlign="Left" />
                    </asp:BoundField>
                    <asp:BoundField DataField="BriefTitle" HeaderText="Brief Name" Visible="true">
                        <ItemStyle HorizontalAlign="Left" />
                        <HeaderStyle HorizontalAlign="Left" />
                    </asp:BoundField>
                    <asp:BoundField DataField="BriefStartDate" HeaderText="Brief Start Date" Visible="false">
                        <ItemStyle HorizontalAlign="Left" />
                        <HeaderStyle HorizontalAlign="Left" />
                    </asp:BoundField>
                    <asp:BoundField DataField="BriefEndDate" HeaderText="Brief End Date" Visible="false">
                        <ItemStyle HorizontalAlign="Left" />
                        <HeaderStyle HorizontalAlign="Left" />
                    </asp:BoundField>
                    <asp:BoundField DataField="BriefClarificationsCompleted" HeaderText="Brief Clarification Status" Visible="true">
                        <ItemStyle HorizontalAlign="Left" />
                        <HeaderStyle HorizontalAlign="Left" />
                    </asp:BoundField>
                    <asp:BoundField DataField="CandidateSubmitProposals" HeaderText="Proposals Status" Visible="true">
                        <ItemStyle HorizontalAlign="Left" />
                        <HeaderStyle HorizontalAlign="Left" />
                    </asp:BoundField>
                    <asp:BoundField DataField="DiscussionGuideUploaded" HeaderText="Discussion Guide Status" Visible="true">
                        <ItemStyle HorizontalAlign="Left" />
                        <HeaderStyle HorizontalAlign="Left" />
                    </asp:BoundField>
                    <asp:BoundField DataField="SummaryReportUploaded" HeaderText="Summary Report Uploaded" Visible="false">
                        <ItemStyle HorizontalAlign="Left" />
                        <HeaderStyle HorizontalAlign="Left" />
                    </asp:BoundField>
                    <asp:BoundField DataField="AssessorName" HeaderText="Assessor Name" Visible="true">
                        <ItemStyle HorizontalAlign="Left" />
                        <HeaderStyle HorizontalAlign="Left" />
                    </asp:BoundField>
                    <asp:BoundField DataField="AssessorStatus" HeaderText="Assessment Status (Assessor)" Visible="true">
                        <ItemStyle HorizontalAlign="Left" />
                        <HeaderStyle HorizontalAlign="Left" />
                    </asp:BoundField>
                    <asp:BoundField DataField="AssessorReviewDate" HeaderText="Assessor Review Date">
                        <ItemStyle HorizontalAlign="Left" />
                        <HeaderStyle HorizontalAlign="Left" />
                    </asp:BoundField>
                    <asp:BoundField DataField="AuditorName" HeaderText="Auditor Name" Visible="true">
                        <ItemStyle HorizontalAlign="Left" />
                        <HeaderStyle HorizontalAlign="Left" />
                    </asp:BoundField>
                    <asp:BoundField DataField="AuditorStatus" HeaderText="Assessment Status (Auditor)" Visible="true">
                        <ItemStyle HorizontalAlign="Left" />
                        <HeaderStyle HorizontalAlign="Left" />
                    </asp:BoundField>
                    <asp:BoundField DataField="AuditorReviewDate" HeaderText="Auditor Review Date">
                        <ItemStyle HorizontalAlign="Left" />
                        <HeaderStyle HorizontalAlign="Left" />
                    </asp:BoundField>
                    <asp:BoundField DataField="IndustryExportName" HeaderText="Industry Expert Name" Visible="true">
                        <ItemStyle HorizontalAlign="Left" />
                        <HeaderStyle HorizontalAlign="Left" />
                    </asp:BoundField>
                    <asp:BoundField DataField="IndustryExpertStatus" HeaderText="Assessment Status (Industry Expert)" Visible="true">
                        <ItemStyle HorizontalAlign="Left" />
                        <HeaderStyle HorizontalAlign="Left" />
                    </asp:BoundField>
                    <asp:BoundField DataField="IndustryExpertReviewDate" HeaderText="Industry Export Review Date">
                        <ItemStyle HorizontalAlign="Left" />
                        <HeaderStyle HorizontalAlign="Left" />
                    </asp:BoundField>
                    <asp:BoundField DataField="RDStatus" HeaderText="Assessment Status (Director)">
                        <ItemStyle Width="20%" HorizontalAlign="Left" />
                        <HeaderStyle HorizontalAlign="Left" />
                    </asp:BoundField>
                    <asp:BoundField DataField="RDReviewDate" HeaderText="Regional Director Review Date">
                        <ItemStyle Width="20%" HorizontalAlign="Left" />
                        <HeaderStyle HorizontalAlign="Left" />
                    </asp:BoundField>
                </Columns>
                <FooterStyle BackColor="Black" Font-Bold="True" ForeColor="White" />
                <PagerSettings Position="TopAndBottom"  />
                <PagerStyle BackColor="#E2DED6" ForeColor="blue" HorizontalAlign="Left" />
                <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                <HeaderStyle BackColor="Black" Font-Bold="True" ForeColor="White" />
                <EditRowStyle BackColor="#CCCCCC" />
                <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
            </asp:GridView>
            <div class="row" style="text-align: center">
                <asp:Button ID="btnDownload" OnClick="btn_download_Click" runat="server" Text="Export To Excel" Visible="false" CausesValidation="false" />
            </div>
        </div>
    </div>
    <div class="row">
        <input id="hdnInput" runat="server" type="hidden" />
    </div>
</asp:Content>

